package com.youkun.dao;

import com.youkun.entity.User;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

/**
 * Created by youkun on 2017/3/7.
 */
@Repository
public interface UserDao extends CrudRepository<User,Long> {

    User save(User user);

    User findByUserName(String userName);
}
